import React from 'react';
import Taro from '@tarojs/taro';
import { View, Text } from '@tarojs/components';
import { IconFont } from "@nutui/icons-react-taro";
import { idNoMask } from '@/utils/str';
import user from '@/assets/svg/user.svg';
import styles from './style.scss';

export default function PatientInfo(props) {

  const { patient } = props;
  
  return (
    <View className={styles.patient}>
      <View className={styles.title}>
        <IconFont name={user} size={28}></IconFont>
        <Text>{patient?.patientName}</Text>
      </View>
      <View className={styles.body}>
        {idNoMask(patient?.idNo)}
      </View>
    </View>
  );
}
